import Http from "@/http";

export function pageApi(params:any) {
    return Http.post('deviceParams/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('deviceParams/update', params) : Http.post('deviceParams/add', params)
}

export function deleteApi(id) {
    return Http.delete('deviceParams/delete/' + id)
}

export function optionsApi() {
    return Http.get('deviceParams/options')
}